package com.yzy.fly.config;

import com.yzy.fly.api.function.data.sensitive.handler.FlySensitiveHandler;
import com.yzy.fly.handler.TestSensitiveHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SensitiveStrategyConfig {

    /**
     * 注入脱敏策略
     */
    @Bean
    public FlySensitiveHandler testSensitiveHandler() {
        // 自定义 testStrategy 类型脱敏处理
        return new TestSensitiveHandler();
    }

    @Bean
    public FlySensitiveHandler testSensitiveHandler2() {
        // 自定义 testStrategy 类型脱敏处理
        return new TestSensitiveHandler();
    }
}
